package org.hwua.production.service;

import org.hwua.production.domain.MaterialReceive;
import org.hwua.production.domain.custom.CustomResult;
import org.hwua.production.domain.custom.EUDataGridResult;
import org.hwua.production.domain.po.MaterialReceivePO;
/**
 * 物料收入管理业务逻辑层接口
 * @author hwua
 *
 */
public interface MaterialReceiveService {
		
	EUDataGridResult getList(int page, int rows) throws Exception;
	
	MaterialReceive get(String string) throws Exception;
	
	CustomResult delete(String string) throws Exception;
	
	CustomResult deleteBatch(String[] ids) throws Exception;
	
	CustomResult insert(MaterialReceivePO materialReceive) throws Exception;
	
	//更新部分字段，用的是updateSelective判断非空的字段进行更新
	CustomResult update(MaterialReceivePO materialReceive) throws Exception;
	
	//更新全部字段，不判断非空，直接进行更新
	CustomResult updateAll(MaterialReceivePO materialReceive) throws Exception;
	
	//更新备注
	CustomResult updateNote(MaterialReceivePO materialReceive) throws Exception;
	
	EUDataGridResult searchMaterialReceiveByReceiveId(int page, int rows, String receiveId) throws Exception;
	
	EUDataGridResult searchMaterialReceiveByMaterialId(int page, int rows,
			String materialId) throws Exception;
}
